import cgi
import users
import url
import moves
import requests
import board
import boards
import authorization
import game

from google.appengine.ext import webapp
from google.appengine.ext.webapp.util import run_wsgi_app


application = webapp.WSGIApplication(
                                     [('/', url.Url),
                                      ('/users/', users.Users),
                                      ('/boards/', boards.Boards),
                                      ('/boards/(.*)/moves/', moves.Moves),
                                      ('/boards/(.*)/requests/', requests.Requests),
                                      ('/boards/(.*)', board.Board)],
                                     debug=True)

def main():
    run_wsgi_app(application)

if __name__ == "__main__":
    main()
